package org.cuatrovientos.erp.model;



import java.sql.Date;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Min;
import javax.validation.constraints.Max;

/**
 * 
 * @author CARLOS
 *
 */

public class City {
	@NotNull(message="ID cannot be null")
	private int id;
	@NotNull(message="Name cannot be null")
	private String name;	
	@NotNull(message="ZipCode cannot be null")
	@Min(10000)
	@Max(99999)
	private int zipcode;
	@NotNull(message="IdState cannot be null")
	@Min(1)
	private int idState;
	

public City () {
	
}


/**
 * @param id
 * @param description
 * @param shipmentDate
 * @param origin
 * @param destiny
 */
public City(int id, String name, int zipcode,
		int idState) {
	this.id = id;
	this.name = name;
	this.zipcode = zipcode;
	this.idState = idState;
}





public int getId() {
	return id;
}


public void setId(int id) {
	this.id = id;
}


public String getName() {
	return name;
}


public void setName(String name) {
	this.name = name;
}


public int getZipcode() {
	return zipcode;
}


public void setZipcode(int zipcode) {
	this.zipcode = zipcode;
}


public int getIdState() {
	return idState;
}


public void setIdState(int idState) {
	this.idState = idState;
}


/* (non-Javadoc)
 * @see java.lang.Object#toString()
 */
@Override
public String toString() {
	return "City [id=" + id + ", name=" + name
			+ ", zipcode=" + zipcode + ", IdState=" + idState
			+"]";
}



}
